<template>
    <!--建档资料维护模块 反洗钱审核页面-->
    <div class="baseInfoPage">
        <div class="title mt20" >
            <span>黑名单</span>
        </div>
        <!-- 表单   -->
        <el-form  :rules="rules" ref="antimoney" label-width="160px" class="search_container">
                <el-row>
                    <el-col :span="8" class="common-box">
                        <el-col :span="13" class="common-lab">
                             <label class="labelName">投保人在黑名单中</label>
                        </el-col>
                        <el-col :span="11">
                            <el-select clearable :disabled="flag =='N'"  v-model="antimoney.applInBlack"  placeholder="" >
                                <el-option
                                    v-for="item in insuInBlack"
                                    :key="item.value"
                                    :label="item.label"
                                    :value="item.value">
                                </el-option>
                            </el-select>
                        </el-col>
                    </el-col>
                    <el-col :span="8" class="common-box">
                        <el-col :span="13" class="common-lab">
                             <label class="labelName">被保人在黑名单中</label>
                        </el-col>
                         <el-col :span="11">
                            <el-select clearable :disabled="flag =='N'"  v-model="antimoney.insuInBlack" placeholder="请选择" >
                                <el-option
                                    v-for="item in insuInBlack"
                                    :key="item.value"
                                    :label="item.label"
                                    :value="item.value">
                                </el-option>
                            </el-select>
                         </el-col>
                    </el-col>
                    <el-col :span="8" class="common-box">
                        <el-col :span="13" class="common-lab">
                             <label class="labelName">受益人在黑名单中</label>
                        </el-col>
                         <el-col :span="11">
                            <el-select clearable :disabled="flag =='N'"  v-model="antimoney.bnyInBlack" placeholder="请选择" >
                                <el-option
                                    v-for="item in bnyInBlack"
                                    :key="item.value"
                                    :label="item.label"
                                    :value="item.value">
                                </el-option>
                            </el-select>
                         </el-col>
                    </el-col>
                </el-row>
        </el-form>

        <div class="title" >
            <span>可疑名单</span>
        </div>
        <!-- 表单   -->
         <el-form :rules="rules" ref="antimoney" label-width="160px" class="search_container">
                <el-row>
                    <el-col :span="8" class="common-box">
                        <el-col :span="13" class="common-lab">
                             <label class="labelName">投保人在可疑名单中</label>
                        </el-col>
                        <el-col :span="11">
                            <el-select clearable :disabled="flag =='N'"  v-model="antimoney.applInDoub"  placeholder="请选择" >
                                <el-option
                                    v-for="item in applInDoub"
                                    :key="item.value"
                                    :label="item.label"
                                    :value="item.value">
                                </el-option>
                            </el-select>
                        </el-col>
                    </el-col>
                    <el-col :span="8" class="common-box">
                        <el-col :span="13" class="common-lab">
                             <label class="labelName">被保人在可疑名单中</label>
                        </el-col>
                         <el-col :span="11">
                            <el-select clearable  :disabled="flag =='N'" v-model="antimoney.insuInDoub"  placeholder="请选择" >
                                <el-option
                                    v-for="item in insuInDoub"
                                    :key="item.value"
                                    :label="item.label"
                                    :value="item.value">
                                </el-option>
                            </el-select>
                         </el-col>
                    </el-col>
                    <el-col :span="8" class="common-box">
                        <el-col :span="13" class="common-lab">
                             <label class="labelName">受益人在可疑名单中</label>
                        </el-col>
                         <el-col :span="11">
                            <el-select clearable  :disabled="flag =='N'" v-model="antimoney.bnyInDoub"  placeholder="请选择" >
                                <el-option
                                    v-for="item in bnyInDoub"
                                    :key="item.value"
                                    :label="item.label"
                                    :value="item.value">
                                </el-option>
                            </el-select>
                         </el-col>
                    </el-col>
                </el-row>
        </el-form>

        <div class="title" >
            <span>其他</span>
        </div>
        <!-- 表单   -->
         <el-form :rules="rules" ref="antimoney" label-width="160px" class="search_container">
                <el-row>
                    <el-col :span="8" class="common-box">
                        <el-col :span="13" class="common-lab">
                             <label class="labelName">现金类型</label>
                        </el-col>
                        <el-col :span="11">
                            <el-select clearable :disabled="flag =='N'"  v-model="antimoney.cashType"  placeholder="请选择" >
                                <el-option
                                    v-for="item in cashType"
                                    :key="item.value"
                                    :label="item.label"
                                    :value="item.value">
                                </el-option>
                            </el-select>
                        </el-col>
                    </el-col>
                    <el-col :span="8" class="common-box">
                        <el-col :span="13" class="common-lab">
                             <label class="labelName">有其他文件类型</label>
                        </el-col>
                         <el-col :span="11">
                            <el-select clearable :disabled="flag =='N'"  v-model="antimoney.hasOtherFile"  placeholder="请选择" >
                                <el-option
                                    v-for="item in hasOtherFile"
                                    :key="item.value"
                                    :label="item.label"
                                    :value="item.value">
                                </el-option>
                            </el-select>
                         </el-col>
                    </el-col>
                </el-row>
        </el-form>
    </div>
</template>
<script>
    // import { getInsurePolicyList,getRecognizeePolicyList,getFavoreePolicyList } from "@/api/comInquiry";//接口
    import constant from '@/utils/constant';
    export default {
        data(){
            return {
                value:'',
                 insuInBlack:[
                     {
                         value:'',
                         label:''
                     },
                     {
                         value:'Y',
                         label:'Y'
                     },{
                         value:'N',
                         label:'N'
                     },
                 ],
                 bnyInBlack:[
                     {
                         value:'',
                         label:''
                     },
                     {
                         value:'Y',
                         label:'Y'
                     },{
                         value:'N',
                         label:'N'
                     },
                 ],
                 applInDoub:[
                     {
                         value:'',
                         label:''
                     },
                     {
                         value:'Y',
                         label:'Y'
                     },{
                         value:'N',
                         label:'N'
                     },
                 ],
                 insuInDoub:[
                     {
                         value:'',
                         label:''
                     },
                     {
                         value:'Y',
                         label:'Y'
                     },{
                         value:'N',
                         label:'N'
                     },
                 ],
                 bnyInDoub:[
                     {
                         value:'',
                         label:''
                     },
                     {
                         value:'Y',
                         label:'Y'
                     },{
                         value:'N',
                         label:'N'
                     },
                 ],
                 cashType:[
                     {
                         value:'',
                         label:''
                     },
                     {
                         value:'C',
                         label:'C-银行代收/现金缴费'
                     },{
                         value:'A',
                         label:'A-转账'
                     },
                 ],
                 hasOtherFile:[
                     {
                         value:'',
                         label:''
                     },
                    {
                         value:'1',
                         label:'Y'
                     },{
                         value:'0',
                         label:'N'
                     },
                 ],
                 antimoney: {},
                 rules: {},
                 insureDataForm: this.insureData,
            }
        },
        props:{
			flag:{
				type:String
			},
            insureData:{
                type: Object,
            }
        },
        mounted(){
            this.reloadInsureData(null);
        },
        methods: {
            reloadInsureData(insureData){
                if(insureData != null){
                    this.insureDataForm = insureData;
                }
                this.antimoney = this.insureDataForm.antimoney;
            },
            getInsureData(){
                return this.insureDataForm;
            }
        },
        watch:{
            /**insureDataForm:{
                handler(val, oldVal){
                   if(this.insureDataForm != undefined){
                        this.$emit('updataAntiMoneyEx', this.insureDataForm)
                    }
                },
                deep:true
            }**/
        }
    }
</script>
<style lang="less" scoped>
.baseInfoPage{
    .common-box{
        padding-bottom: 15px;
    }
    .common-lab{
        line-height:normal!important;
        text-align: right;
        .labelName{
            text-align: right;
        }
    }
}
</style>
